﻿Public Class BrowserForm


    Public webSource As String

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim tpuri As New Uri(TextBox1.Text.Trim)

        WebBrowser1.Navigate(tpuri)

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        '  webSource = WebBrowser1.DocumentText




        Dim Obj_StreamReader As New System.IO.StreamReader(WebBrowser1.DocumentStream, System.Text.Encoding.GetEncoding(cmbCoding.Text))

        webSource = Obj_StreamReader.ReadToEnd()



    End Sub
End Class